#ifndef _MSG_CANAPI_h
#define _MSG_CANAPI_h

/* #include */
#include "msg_canType.h"
#include "msg_canList.h"


//CAN message transform function;
c_bool c_bool_rd(CAN_RX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize);
c_u8   c_u8_rd(CAN_RX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize);
c_u16  c_u16_rd(CAN_RX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize);
c_u32  c_u32_rd(CAN_RX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize);
void c_bool_wr(CAN_TX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize, c_bool v);
void c_u8_wr(CAN_TX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize, c_u8 v);
void c_u16_wr(CAN_TX_MSG_S *ptr, c_u8 lsbPos, c_u8 bitSize, c_u16 v);

#endif








